package org.bud.rung.controller;

import org.bud.rung.netty.client.NettyClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shaun
 * @date 2024/8/10
 * @instruction
 */
@RestController
@RequestMapping("/job")
public class JobController {
    @RequestMapping("/version")
    public String version(){
        return "1.0.0";
    }

    @RequestMapping("/send")
    public String send(String jobName){
        NettyClient.getInstance().send(jobName);
        return "job send";
    }
}
